Getting MIME Types
Your graphics import component can support MIME types that correspond to graphics formats it supports. To make a list of these MIME types available to applications or other software, it must implement the GraphicsImportGetMIMETypeList function described in this section.
GraphicsImportGetMIMETypeList
Returns a list of MIME types supported by the graphics import component.
pascal ComponentResult GraphicsImportGetMIMETypeList (
GraphicsImportComponent ci,
QTAtomContainer *qtAtomContainerPtr)
-
ci
-
Specifies an instance of a graphics importer component.
-
qtAtomContainerPtr
-
A pointer to a MIME type list, a QT atom container that contains a list of MIME types supported by the graphics import component. The MIME type list structure is described in
"MIME Type List"
.
DISCUSSION
To indicate that your graphics import component supports this function, set the
hasMovieImportMIMEList
flag in the
componentFlags
field of the component description record.
RESULT CODES
noErr
|
0
|
No error
|
paramErr
|
-50
|
Invalid parameter specified
|
memFullErr
|
-108
|
Not enough memory available
|
badComponentSelector
|
0x80008002
|
Component does not support the specified request code
|
© 1997 Apple Computer, Inc.Previous | Chapter Top | Contents